{include file="news/header.tpl"}



<!-- 头部// -->
{include file="news/top.tpl"} {include file="news/nav.tpl"}
<!-- start: Content -->
<div id="content" class="span10">


<div class="row-fluid">


<div class="box span12"><!-- Default panel contents -->

<div class="box-header" data-original-title="">
<div class="box-icon"><a href="#" class="btn-setting"><i
	class="icon-wrench"></i></a> <a href="#" class="btn-minimize"><i
	class="icon-chevron-up"></i></a> <a href="#" class="btn-close"><i
	class="icon-remove"></i></a></div>
</div>

<div class="box-content">
<div class="progress progress-striped active">
<div class="bar" style="width: 0%;"></div>
</div>

<table class="table">
	<form action="#" method="post" class="form-inline">
	<tr>
		<td class="span2">类型:</td>
		<td><select name="types" id="types">
			<option value="-c">全部分类</option>
			<option value="-n">全部内容</option>
		</select></td>
		<td></td>

	</tr>
	<tr>
		<td>线程数:</td>
		<td><select name="num" id="num">
			<option value="1">1</option>
			<option value="2">2</option>
			<option value="3" selected>3</option>
			<option value="4">4</option>
			<option value="5">5</option>
			<option value="6">6</option>
			<option value="7">7</option>
			<option value="8">8</option>
		</select></td>
		<td></td>

	</tr>


	<tr>
		<td></td>
		<td>
		<button type="button" id="ex" class="btn btn-primary" onclick="e()">执行</button>
		</td>
		<td></td>
	</tr>
	</form>

</table>
</div>
</div>
</div>


{literal} <script type="text/javascript">
function e(){
  var t=$("#types").val();
  var num=$("#num").val();
  $.post("/news/setprocess",{types:t,num:num},function(data){
$("#ex").attr("disabled","disabled");
$("#ex").addClass("btn disabled");

alert(data);
setInterval("process()",2000);

	 })

}

var jd;
function process(){
	$.post("/news/batchall",{process:1},function(data){
jd=data.data;
	  $(".bar").css("width",data.data+"%");
		
	},"json")
		}

</script> {/literal}